import request from '@/utils/request'

// 查询专家职称列表
export function listPost(query) {
  return request({
    url: '/expert/post/list',
    method: 'get',
    params: query
  })
}

// 查询专家职称详细
export function getPost(postId) {
  return request({
    url: '/expert/post/' + postId,
    method: 'get'
  })
}

// 新增专家职称
export function addPost(data) {
  return request({
    url: '/expert/post',
    method: 'post',
    data: data
  })
}

// 修改专家职称
export function updatePost(data) {
  return request({
    url: '/expert/post',
    method: 'put',
    data: data
  })
}

// 删除专家职称
export function delPost(postId) {
  return request({
    url: '/expert/post/' + postId,
    method: 'delete'
  })
}
// 获取专家职称选择框列表
export function optionselect() {
  return request({
    url: '/expert/post/optionselect',
    method: 'get'
  })
}
